<?
class sym_pager extends symbiont{
    public function ___main($design='', $page, $count){
        $start=$page-5>0?$page-5:1;
        $finish=$page+5<$count?$page+5:$count;
        if($start==$finish) return;
        $design=$this->_check($design, 'main');
        $d=new design($design, 'pager', false);
        $this->items='';
        for($i=$start; $i<=$finish; $i++){
            $this->i=$i;
            if($i==$page) $this->current=true;
            else $this->current=false;
            $this->items.=design::run($this->item);
        }
        $d->inc();
    }
}
?>